//
//  KCHomeTitleCell.m
//  Golden
//
//  Created by king on 2017/8/16.
//  Copyright © 2017年 KC. All rights reserved.
//

#import "KCHomeTitleCell.h"

@interface KCHomeTitleCell ()

@property (weak, nonatomic) IBOutlet UILabel *theTitleLabel;

@end

@implementation KCHomeTitleCell

- (void)setModel:(headlines *)model {
    
    _model = model;
    
    _theTitleLabel.text = _model.title;
    
}

+ (instancetype)cellWithTableView:(UITableView *)tableview {
    
    KCHomeTitleCell *cell = [tableview dequeueReusableCellWithIdentifier:NSStringFromClass(self)];
    if (cell == nil) {
        cell = [[[NSBundle mainBundle]loadNibNamed:NSStringFromClass(self) owner:nil options:nil]lastObject];
    }
    return cell;
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
